Preconditioner having a digital power factor controller

ABSTRACT

A ballast preconditioner serving as a boost regulator which includes a power factor controller. The preconditioner also includes a capacitor for producing a substantially DC voltage and a switch for controlling the amount of energy stored in the capacitor in response to a switching signal. The power factor controller includes a waveform generator having a look-up table for storing values of at least one waveform. The switching signal produced by the power factor controller is based on the at least one waveform accessed from the look-up table.

BACKGROUND OF THE INVENTION

This invention relates generally to a preconditioner of an electronic ballast and, more particularly, to a power factor controller of an electronic ballast preconditioner.

Power factor controllers control the ba last input current in response to the ballast input voltage in attempting to provide a ballast power factor of 1.0 (i.e. to make the ballast input look like a simple resistor). The ballast power factor is the ratio of the actual power of an alternating or pulsating current to the apparent power drawn by a ballast. When the input current relative to the input voltage contains phase displacement, harmonic distortion or both, the power factor will be less than 1.0. The amount of displacement between the voltage and current indicates the degree to which the load is reactive. Harmonic distortion, that is, the production of harmonic frequencies, arises from the nonlinear operation of the ballast in drawing power from a mains sinudoidal signal.

A conventional power factor controller often assumes that the input voltage to the ballast will be substantially sinusoidal. Non-linear loads (e.g. machines, motors) drawing power from the mains can temporarily distort the mains voltage resulting in a substantially nonsinusoidal input voltage. Control of the input current based on a non-sinsoidal input voltage can be difficult and can lead to power factor correction of far less than 1.0. It also can be difficult to maintain a total harmonic distortion (THD) of less than 10% without adversely affecting the power factor.

Maintaining low THD while supplying a DC voltage to the ballast inverter with low ripple typically requires an undesirably large, expensive electrolytic capacitor. Such capacitors deteriorate with time (i.e. dry out) losing their capacitance and therefore their capability of maintaining low ripple. Unacceptable THD levels can result. The relatively large size of these electrolytic capacitors also hampers integrating the components of the ballast preconditioner onto an integrated circuit thereby limiting reduction in ballast manufacturing cost and size.

It is therefore desirable to provide an improved power factor controller which is unaffected by the temporary distortion of the mains voltage. The improved power factor controller should maintain a relatively high power factor (e.g. greater than 95%) without use of a relatively large electrolytic capacitor in order to maintain a low THD.

SUMMARY OF THE INVENTION

In accordance with a first aspect of the invention, a ballast preconditioner includes a capacitor for producing a substantially DC voltage, a switch for controlling the amount of energy stored in the capacitor in response to a switching signal; and a power factor controller for producing the switching signal. The power factor controller includes a reference waveform generator having a look-up table for storing values of at least one waveform. The switching signal produced by the power factor controller is based on the at least one waveform accessed from the look-up table.

The power factor controller is unaffected by temporary distortion of a mains voltage caused by non-linear loads such as machines through storage of the waveform in the look-up table. The waveform stored is typically a half cycle of a sine wave.

It is a feature of the invention that the preconditioner includes a scaling circuit for adjusting the size of the waveform accessed from the lock-up table. The scaling circuit is responsive to the voltage across the output of the preconditioner in adjusting the size of the waveform accessed from the look-up table.

The preconditioner is powered by an AC signal at a first frequency. The reference waveform generator generally further includes a phase lock loop having a pulse output signal at a second frequency. This second frequency is a multiple of the first frequency. The pulse output signal, which serves as a clock signal for reading the values of the at least one waveform stored in the look-up table, is a series of pulses (pulse train). The beginning of the pulse train is synchronized to a substantially zero voltage condition of the AC signal. Consequently, any phase displacement between the input ballast voltage and the signal for turning on the switch is substantially eliminated. The power factor controller can include a microcontroller having a read-only memory serving as the look-up table.

In accordance with another aspect of the invention, a method for operating a ballast preconditioner includes generating a waveform based on values stored in a look-up table, producing a switching signal based on the generated waveform, controlling the amount of energy stored in a capacitor in response to the switching signal, and producing a substantially DC voltage across the capacitor based on the stored energy.

It is a feature of this second aspect of the invention that the method further include adjusting the size of the waveform generated based on the voltage across an output of the preconditioner.

Accordingly, it is an object of the invention to provide an improved ballast preconditioner having a power factor controller which is unaffected by the temporary distortion of the mains voltage.

It is another object of the invention to provide an improved ballast preconditioner having a power factor controller which maintains a relaively high power factor without the use of a relatively large electrolytic capacitor in order to maintain a low THD.

Still other objects and advantages of the invention will, in part, be obvious and will, in part, be apparent from the specification.

The invention accordingly comprises several steps and the relation of one or more such steps with respect to each of the others, and a device embodying features of construction, combination of elements, and arrangements of parts which are adapted to effect such steps, all as exemplified in the following detailed disclosure, and the scope of the invention will be indicated in the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

For a fuller understanding of the invention, reference is had to the following description taken in connection with the accompanying drawings, in which:

FIG. 1 is a partial block diagram and partial electrical schematic of a power factor controller in accordance with the invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

As shown in FIG. 1, a mains sinusoidal AC voltage source 10 is connected to a ballast 12. Source 10 is connected to a pair of input nodes N1 and N2 of a full bridge rectifier 13 of ballast 12. A rectified sinusoidal voltage provided at a pair of output nodes N3 and N4 of rectifier 13 is applied to a preconditioner 14. The rectified sinusoidal voltage is transformed by preconditioner 14 into a substantially DC voltage with low ripple which is applied to an inverter (not shown) of ballast 12. In other words, preconditioner 14 serves as a boost regulator. Preconditioner 14 through a power factor controller 31 also controls the ballast input current in response to the ballast input voltage to maintain a high ballast power factor (e.g. over 95%) while maintaining a low THD (e.g. less than 10%).

The rectified sinusoidal voltage produced by rectifier 13 is applied to a primary winding 16 of a transformer 19 of preconditioner 14. A capacitor 22, typically an electrolytic, stores the energy supplied by primary winding 16 based on the energy passed through a diode 25. A switch 28, generally a field effect transistor (FET), is connected to a junction joining primary winding 16 to diode 25. The amount of energy supplied to capacitor 22 is controlled by the switching state of switch 28. A substantially DC voltage is produced across capacitor 22 which is supplied to an inverter of ballast 12.

Power factor controller 31 determines both the shape of the mains input current and the phase of the mains input current relative to the mains input voltage by controlling when switch 28 is turned on and off. A reference waveform generator of power factor controller 31 includes a zero crossing detector 34, a digital phase locked loop (PLL) 37 and a lookup table (LUT) 40. Detector 34 compares the voltage at a noninverting input (+), connected to a DC offset (Voffset), to the voltage at an inverting input (-), connected to output node N4 of full bridge rectifier 13. When the voltage at the noninverting input (+) is equal to or greater than the voltage at the inverting input (-), the output voltage of detector 34 is at a high logic level. When the voltage at the noninverting input (+) is less than the voltage at the inverting input (-), the output voltage of detector 34 is at a low logic level. A voltage pulse will be produced by detector 34 whenever the voltage produced by full bridge rectifier 13 is at about zero volts, that is, every half cycle of the rectified sinusoidal voltage. An 8-bit digital pulse signal having a first frequency N is supplied to PLL 37 and represents the sinusoidal voltage supplied by source 10 to ballast 12.

PLL 37 outputs a pulse signal Vp having a second frequency M times greater than first frequency N (i.e. M is a multiple of of N). Pulse signal Vp (i.e. a series of pulses forming a pulse train) is based on the zero crossings of the AC voltage produced by source 10 thereby substantially eliminating any phase displacement between the input ballast voltage and the signal for turning on switch 28. These zero voltage crossings are the substantially zero voltage conditions of the rectified AC signal produced across the output of rectifier 13. Signal Vp serves as a clock signal for reading digitized values of a sine wave stored within LUT 40. Each of the M digitized values is an 8 bit word which together represent the positive half cycle of a sine wave stored in LUT 40. In accordance with the invention, a microcontroller, such as a 80C51 microcontroller, can be used in which a read only memory (ROM) of the microcontroller stores the M digitized values representing the positive half cycle of a sine wave.

The 8 bit word outputted from LUT 4 is supplied to a multiplier 43 which multiplies the 8 bit word by a scaling factor. The scaling factor is determined by a scaling circuit which includes an analog to digital converter (ADC) 46, a digital subtractor 49 and a filter compensator 52. The scaling factor is based on the voltage across capacitor 22, that is, the output voltage of preconditioner 14. Through scaling of the digitzed positive half cycle sine wave, power factor controller 31 serves to regulate the output volage of preconditioner 14.

The output voltage of preconditioner 14 is sampled through a voltage divider formed from the serial combination of a pair of resistors 55 and 58 which are connected between the junction connecting diode 25 to capacitor 22 and ground. The sampled voltage is applied to a switch 61 which is closed whenever the output of detector 34 is at a high logic level (i.e. during the zero voltage crossings of the bridge 13 output). ADC 46 converts the sampled voltage into an 8 bit digital signal which is inputted to digital subtractor 49. The digitized sampled voltage is subtracted from a reference voltage Vref and is used to minimize the difference therebetween. Reference voltage Vref represents the DC output voltage desired across the output of preconditioner 14.

The output of digital subtractor 49 serves as an error signal and is based on the difference between the sampled voltage representing the actual voltage and the desired voltage across the output of preconditioner 14. Filter compensator 52, which is a digital low pass filter, receives the digital subtractor 49 output. An extra pole can be added by filter compensator 52 into the control system for more stable and reliable operation. Other embodiments can include, but are not limited to, multiple poles or pole and zero implementations. Filter compensator 52 includes an adder 64 whose output is supplied to a multiplier 65. The output of multiplier 65 serves as the scaling factor to multiplier 43. The output of adder 64 is also supplied to a feedback path formed by a multiplier 67 and a register 70. Register 70 serves as a unit delayer. A pair of coefficients K1 and K2 associated with multipliers 65 and 67, respectively, are programmable and based on the system load.

The scaled digital sine wave outputted by multiplier 43 is converted into an analog signal by a digital to analog converter (DAC) 73. The output of multiplier 43, now in analog form, serves as a reference current supplied to the noninverting input of a current sense comparator 76. The reference current is a sine wave current based on the series sine wave binary digital code stored in LUT 40 and is based on and adjusted by a scaling factor during each zero crossing of the input voltage applied to ballast 12 by AC source 10.

A sample of the current flowing through primary winding 16 is converted into a voltage by a resistor 79 and applied to the inverting input of current sense comparator 76. The sampled current flowing through primary winding 16 is compared to the reference current by comparator 76. An RS latch 82, which receives the output of comparator 76 at its S input, ensures that only a single pulse appears at a Q output of latch 82 for turning on (i.e. driving into conduction) switch 28. Latch 82 is reset when substantially zero current is flowing through primary winding 16. Such substantially zero current flow is detected through a secondary winding 17 of transformer 19 monitoring the flow of current through primary winding 16 and supplying same to a Schmitt trigger 85. A high logic level is outputted by Schmitt trigger 85 and supplied to the R input of latch 82 for resetting the latter whenever a substantially zero current level is detected flowing through primary winding 16.

Comparator 76 provides a switching sequence to switch 28 which forces the peak of the current flowing through primary winding 16 to be substantially equal to the reference current supplied by DAC 73. The size of LUT 40 depends on the resolution of the analog signal desired to be outputted by DAC 73 and the ratio between the second frequency M and the first frequency N associated with PLL 37. A high resolution produced by DAC 73 can synthesize a substantially perfect sinusoid waveform such that the THD of the input current drawn by ballast 12 can be significantly reduced.

As can now be readily appreciated, an improved preconditioner 14 having power factor controller 31 is unaffected by the temporary distortion of the mains voltage through storage of a sine wave within LUT 40. Power factor controller 14 maintains a relatively high power factor (e.g. greater than 95%) without use of a relatively large electrolytic capacitor in order to maintain a low THD.

It will thus be seen that the objects set forth above and those made apparent from the preceding description are efficiently attained and since certain changes may be made in the above construction without departing from the spirit and scope of the invention, it is intended that all matter contained in the above description and shown in the accompanying drawings shall be interpreted as illustrative and not in a limiting sense.

It is also to be understood that the following claims are intended to cover all the generic and specific features of the invention herein described, and all statements of the scope of the invention which, as a matter of language, might be said to fall therebetween. 

What we claim is:
 1. A ballast preconditioner, comprising:a capacitor for producing a substantially DC voltage; a switch for controlling the amount of energy stored in the capacitor in response to a switching signal; and a power factor controller for producing the switching signal and including a reference waveform generator having a look-up table for storing values of at least one waveform, wherein the switching signal produced by the power factor controller is based on the at least one waveform accessed from the look-up table.
 2. The preconditioner of claim 1, wherein the power factor controller further includes a scaling circuit for adjusting the size of the waveform accessed from the look-up table.
 3. The preconditioner of claim 2, wherein the preconditioner includes an output and wherein the scaling circuit is responsive to a voltage across the output of the preconditioner in adjusting the size of the waveform accessed from the look-up table.
 4. The preconditioner of claim 1, wherein the preconditioner is operable to be powered by an AC signal at a first frequency, and wherein the reference waveform generator further includes a phase lock loop having a pulse output signal at a second frequency, the second frequency being a multiple of the first frequency.
 5. The preconditioner of claim 4, wherein the pulse output signal is a pulse train, the beginning of the pulse train being synchronized to a substantially zero voltage condition of the AC signal.
 6. The preconditioner of claim 4, wherein the pulse output signal serves as a clock signal for reading the values of at least one waveform stored in the look-up table.
 7. The preconditioner of the claim 1, wherein the values of at least one waveform stored in the look-up table represent a half cycle of a sine wave.
 8. The preconditioner of claim 1, wherein the power factor controller includes a microcontroller having a read-only memory serving as the look-up table.
 9. The preconditioner of claim 3, wherein the preconditioner is operable to be powered by a rectified AC signal at a first frequency, and wherein the reference waveform generator further includes a phase lock loop having a pulse output signal at a second frequency, the second frequency being a multiple of the first frequency.
 10. The preconditioner of claim 9, wherein the pulse output signal serves as a clock signal for reading the values of at least one waveform stored in the look-up table.
 11. The preconditioner of claim 10, wherein the power factor controller includes a microcontroller having a read-only memory serving as the look-up table.
 12. The preconditioner of claim 10, wherein the pulse output signal is a pulse train, the beginning of the pulse train being synchronized to a substantially zero voltage condition of the rectified AC signal.
 13. A method for operating a ballast preconditioner, comprising:generating a waveform based on sinusoidal-type values stored in a look-up table; producing a switching signal based or the generated waveform; controlling the amount of energy stored in a capacitor in response to the switching signal; and producing a substantially DC voltage across the capacitor based on the stored energy.
 14. The method of claim 13, which further comprises adjusting the size of the waveform generated based on a voltage across an output of the preconditioner.
 15. The method as claimed in claim 13 wherein the values of the waveform stored in the look-up table represent a half-cycle of a sine wave.
 16. The ballast preconditioner as claimed in claim 1 further comprising means for powering the preconditioner by means of an AC signal at a first frequency and wherein the reference waveform generator further comprises means for supplying to the look-up table a pulse output signal at a second frequency, the second frequency being a multiple of the first frequency.
 17. The ballast preconditioner as claimed in claim 1 wherein the reference waveform generator includes means for synchronizing operation of the look-up table with zero crossings of an AC supply voltage for the preconditioner.
 18. The ballast preconditioner as claimed in claim 1 further comprising means for deriving a signal indicative of a zero current level of a current flowing to the capacitor, and wherein said switching signal is in part determined by said signal.
 19. A discharge lamp ballast apparatus comprising:an input terminal for receipt of a supply voltage for the ballast apparatus, a capacitor coupled to said input terminal, an electronic switch coupled to said input terminal and to said capacitor for control of current flow to the capacitor in response to a switching signal supplied to the electronic switch, a power factor controller for producing the switching signal and which includes a reference waveform generator having means for storing at least one sinusoidal-based waveform, and means controlled at least in part by said at least one stored waveform for deriving said switching signal, and means for supplying the switching signal to a control terminal of said electronic switch.
 20. The discharge lamp ballast apparatus as claimed in claim 19 wherein said storing means includes a look-up table containing digital values of a waveform representing a half cycle of a sine wave.
 21. The discharge lamp ballast apparatus as claimed in claim 20 wherein the power factor controller further comprises a scaling circuit for adjusting the size of the waveform accessed from the look-up table as a function of a voltage developed across an output of the ballast apparatus.
 22. The discharge lamp ballast apparatus as claimed in claim 21 wherein the scaling circuit farther comprises means for sampling the output voltage of the ballast apparatus in synchronism with zero crossings of an alternating supply voltage at said input terminal, and a multiplier responsive to the accessed digital values representing the half cycle of the sine wave and controlled by the sampled voltage.
 23. The discharge lamp ballast apparatus as claimed in claim 19 further comprising;means for synchronizing an electric waveform generated by the reference waveform generator, and which is based upon the stored waveform, with the input waveform of the supply voltage at the input terminal.
 24. The discharge lamp ballast apparatus as claimed in claim 19 wherein the supply voltage is an AC nominal sinusoidal voltage and the reference waveform generator further comprises means for comparing a sinusoidal based reference current waveform derived from the stored sinusoidal based waveform with an input current waveform from said input terminal whereby the input current waveform is independent of the shape of the supply voltage waveform.
 25. The discharge lamp ballast apparatus as claimed in claim 24 wherein the means for storing stores the at least one sinusoidal based waveform as digital values representative thereof. 